<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
     xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
   
    <ui:composition template="/views/_template.xhtml">
    	<ui:define name="corpo">
             <div>
                <h:outputLabel value="Dados do grupo de Lancamento" style="border-bottom: 3px solid #C22; text-align: left; font-size: 18px; width: 900px;" 
                               rendered="#{empty grupoLancamentoBean.grupoLancamento.id}" />
                <h:outputLabel value="Alterar Dados do grupo de Lancamento" style="border-bottom: 3px solid #C22; text-align: left; font-size: 18px; width: 900px;" 
                               rendered="#{not empty grupoLancamentoBean.grupoLancamento.id}" /> 
            </div>
            <h:form>
                <p:messages id="mensagens" showDetail="true" />
                <h:dataTable styleClass="dadosForm">
                    <h:column>
                        <f:facet name="header">
                           <h:outputLabel style="margin: 5px; text-align: left;" value="Descrição" /> 
                        </f:facet>
                        <f:facet name="footer">
                            <p:inputTextarea style="width: 800px;" id="nBanco" value="#{grupoLancamentoBean.grupoLancamento.descricao}" />             
                        </f:facet> 
                    </h:column>
                </h:dataTable><br />
                <h:commandButton value="Gravar" action="#{grupoLancamentoBean.gravar()}" />
                <h:commandButton value="Limpar" action="#{grupoLancamentoBean.limparFormularioDoJsf()}" />

            </h:form>
        </ui:define>
    </ui:composition>
</html>

